package com.group.yqxxb.eums;

import lombok.Getter;

@Getter
public enum ResultEnum {
    SUCCESS(0, "成功"),
    ERROR(1, "系统出现故障，请迅速联系系统管理员"),
    API_ERROR(2,"调用网易云信api出错"),
    SQL_ERROR(3,"sql语句或执行出错"),
    NOT_LOGIN_ERROR(4,"账号未登录"),
    ALREADY_REGISTER(5,"账号已注册"),
    NOT_REGISTER(6,"该账号未注册"),
    LOGIN_FAIL(7,"登陆失败");




    private Integer code;
    private String msg;
    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
